Repository navigation
feat(ui): let the data table name its row header column - #1256
Merged
Merged
Conversation
A table whose identifying value is not in the first column, such as the migration conflicts, could not use the shared data table. The new rowHeader prop names the column that is drawn as the row header in its own position. Without it the first column stays the row header. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The shared data table always drew its first column as the row header. Some tables identify a row by another column: the migration conflicts name the path in the second column. They could not move onto the table without losing that. The table now takes the key of the column that is the row header, and draws it where it sits in the row. Nothing changes for existing tables.
This is the first step of task 5.7 of
migrate-content-to-components; the migration step that needs it follows once this is merged.Type of change
feat- new option of an existing component, no visible changeHow was this tested?
MdDataTable.test.tsgained two tests (a named row header in its own position, the default unchanged), written first and seen failing.npx vitest run src/components src/anchors src/style-gate: all 5409 tests passed.vue-tscand eslint on the changed files: clean.Checklist
./gradlew buildpasses locally (frontend-only change, not run)